Skip to content

Conversation

paoloromolini
Copy link
Contributor

PR reopened in place of #291
following @JinHuangAtZen comments.

Signed-off-by: Paolo Romolini <[email protected]>
Copy link

@JinHuangMelb JinHuangMelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @paoloromolini, I think there is one step missing, which is generate the mock client as mentioned in the readme https://github.com/nukosuke/go-zendesk#to-regenerate-the-mock-client.
After running the go generate ./..., you will see the updated client.go file with the newly added functions. That's why the test fail.

@paoloromolini
Copy link
Contributor Author

Hi @JinHuangAtZen I got this error when running the command:

go generate ./...                                                                                                                                                                                           [9:14:40]
2023/11/09 09:16:33 Loading input failed: api.go:8:2: unknown embedded interface AppAPI
zendesk/api.go:4: running "mockgen": exit status 1

@JinHuangMelb
Copy link

Hi @JinHuangAtZen I got this error when running the command:

go generate ./...                                                                                                                                                                                           [9:14:40]
2023/11/09 09:16:33 Loading input failed: api.go:8:2: unknown embedded interface AppAPI
zendesk/api.go:4: running "mockgen": exit status 1

Hi @paoloromolini , I've made a new PR with all your changes here #296 and it's passing the tests. I think the issue you see is because this library was recently upgraded to use https://github.com/uber-go/mock, it might not installed in your local dev environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants